﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace Devpad_IDE.Dialogs.Tools
{
    /// <summary>
    /// Interaction logic for OptionsDialog.xaml
    /// </summary>
    public partial class OptionsDialog : Window
    {
        public String Result = "Cancel"; Brush back;

        public OptionsDialog(Brush bg)
        {
            InitializeComponent();
            back = bg;
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.Options_Theme = ThemeComboBox.SelectedIndex;
            Result = "OK";
            Close();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.Background = back;
        }
    }
}